<?php if (basename(__FILE__) == basename($_SERVER['PHP_SELF'])) header("Location: index.php");  ?>
<?php require_once("sdk/facebook_header.php"); if( DEBUG && REQUIRE_LIKE ) { $like = true; } ?>
<!DOCTYPE HTML>
<html lang="ka">
    <head>
        <meta charset="UTF-8">    
        <?php if( !DEBUG && REDIRECT ): ?>
        <script type="text/javascript">
		    var url = '<?php echo FB_PAGE_URL; ?>'
		    if(top === self) {
				top.location.href = url;
		    }
		</script>
		<?php endif; ?>
		<link rel="stylesheet" type="text/css" href="media/css/main.css" media="all" />
        <link rel="stylesheet" type="text/css" href="media/css/style.css" media="all" />
        <!--[if IE 7]>
        	<link rel="stylesheet" type="text/css" href="media/css/ie7.css" media="all" />
        <![endif]-->
		<?php if( DEBUG ) : ?>
    	<style type="text/css">
    		html, body { overflow: auto; }
    	</style>
    	<?php endif; ?>
        <title><?php echo TITLE; ?></title>
    </head>
    <body>
        <div id="wrapper">
        	<?php if ( REQUIRE_LIKE && !$like ) : ?>
        		<div id="welcome">
        			<h1><?php echo WELCOME_TEXT; ?></h1>
        		</div><!-- #welcome -->
    		<?php else : ?>
    			<div id="like">
        			<h1><?php echo LIKE_TEXT; ?></h1>
        		</div><!-- #welcome -->
			<?php endif; ?>
                    